﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using StockShark.Models;
using System.Web.Security;

namespace StockShark.ViewModels
{
    public class ScoreboardData
    {
        public BrokerageAccount BrokerageAccount { get; set; }
        public string UserName { get; set; }
        public int Position { get; set; }

        public ScoreboardData(BrokerageAccount ba, int p)
        {
            BrokerageAccount = ba;
            UserName = Membership.GetUser(ba.UserId).UserName;
            Position = p;
        }
    }
}